import uniqueId from '@form-create/utils/lib/unique';
import { localeProps, makeRequiredRule } from '../../utils';

const label = '签名板';
const name = 'jd-sign-board';

export default {
    icon: 'icon-sign',
    label,
    name,
    rule({ t }) {
        return {
            type: 'jd-sign-board',
            field: 'QZB',
            title: '签字板',
            info: '',
            $required: false,
            validate: false,
            props: {}
        };
    },
    props(_, { t }) {
        return localeProps(t, name + '.props', [
            // { type: 'input', field: 'placeholder', title: '占位文本' },
            makeRequiredRule(),
            {
                type: 'switch',
                field: 'disabled',
                title: '是否禁用',
                col: { span: 12 }
            }
        ]);
    }
};
